<?php


include 'Db.cls.php';
include 'Paging.cls.php';

DB::config('127.1','root','asd123','discuz');

$sql = "select * from cdb_cos_index ";

$PG = new Paging($sql, $_GET['page'], 5);

print_r($PG->data);

//echo $PG->first();
echo '<br />';
echo $PG->page();